{extend name="base/main" /}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
  <div class="ibox float-e-margins">
    <div class="ibox-title">
      <h5>会员管理 / 会员等级修改</h5>
    </div>
    <div class="ibox-content">
      <form id="f" action="{:url('Svips/update')}" class="form-horizontal m-t">
        <div class="form-group">
          <label class="col-sm-2 control-label">会员名：</label>
          <div class="col-sm-4">
            <input name="title" value="{$list.title}" class="form-control" type="text" datatype="*2-30" placeholder="月卡">
            <span class="help-block m-b-none Validform_checktip" ></span>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">有效时间：</label>
          <div class="col-sm-4">
            <input type="radio" name="vip_day" value="1" title="月" <?php if($list['vip_day']==1) { echo 'checked';} ?>>月
            <input type="radio" name="vip_day" value="2" title="季" <?php if($list['vip_day']==2) { echo 'checked';} ?>>季
            <input type="radio" name="vip_day" value="3" title="年" <?php if($list['vip_day']==3) { echo 'checked';} ?>>年
            <input type="radio" name="vip_day" value="4" title="永久" <?php if($list['vip_day']==4) { echo 'checked';} ?>>永久
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">会员原价：</label>
          <div class="col-sm-4">
            <input name="original_price" value="{$list.original_price}" class="layui-input" type="text" placeholder="30.00">
            <span class="help-block m-b-none Validform_checktip" ></span>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">会员优惠后价格：</label>
          <div class="col-sm-4">
            <input name="price" value="{$list.price}" class="layui-input" type="text" placeholder="20.00">
            <span class="help-block m-b-none Validform_checktip" ></span>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">排序</label>
          <div class="col-sm-4">
            <input type="text" value="{$list.sort}" name="sort" class="layui-input" placeholder="1">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">是否免费：</label>
          <div class="col-sm-4">
            <input type="radio" name="is_free" value="1" title="是" <?php if($list['is_free']==1) { echo 'checked';} ?>>是
            <input type="radio" name="is_free" value="2" title="否" <?php if($list['is_free']==2) { echo 'checked';} ?>>否
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">是否永久：</label>
          <div class="col-sm-4">
            <input type="radio" name="is_permanent" value="1" title="是" <?php if($list['is_permanent']==1) { echo 'checked';} ?>>是
            <input type="radio" name="is_permanent" value="2" title="否" <?php if($list['is_permanent']==2) { echo 'checked';} ?>>否
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">是否发布：</label>
          <div class="col-sm-4">
            <input type="radio" name="is_publish" value="1" title="是" <?php if($list['is_publish']==1) { echo 'checked';} ?>>是
            <input type="radio" name="is_publish" value="2" title="否" <?php if($list['is_publish']==2) { echo 'checked';} ?>>否
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-4 col-sm-offset-3">
            <input type="hidden" name="id" value="{$list.id}">
            <button class="btn btn-primary" type="submit">立即修改</button>
            <button class="btn btn-default historygo" type="button">清空</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
{/block}